//
//  CameraManager.h
//  LearnBasketball
//
//  Created by maoyu on 15/6/10.
//  Copyright (c) 2015年 bandian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol CameraManagerDelegate <NSObject>

@optional

- (void)pickedImage:(UIImage *)image;
- (void)pickerDidCancel;

@end

@interface CameraManager : NSObject<UIImagePickerControllerDelegate,UINavigationControllerDelegate>

@property (nonatomic, weak) id<CameraManagerDelegate> delegate;

+ (CameraManager *)defaultInstance;

- (void)showActionSheetWithViewController:(UIViewController *)viewController withTitle:(NSString *)title;
- (void)showCameraWithViewController:(UIViewController *) controller withEdit:(BOOL)edit;
- (void)showAlbumWithViewController:(UIViewController *) controller withEdit:(BOOL)edit;

- (UIImage *)fixOrientation:(UIImage *)aImage;

@end
